package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * @Title: BuyerInfoBean
 * @Package: com.project.bean
 * @Description:
 * @Author: Liang-Xie
 */
@SuppressWarnings("all")
/**
 * 采购明细实体类
 */
@TableName("t_buyerInfo")
public class BuyerInfoBean {
    /**
     * 编号
     */
    @TableId(value = "pk_buyerInfoId",type = IdType.AUTO)
    private Integer id;
    /**
     * 采购商品
     */
    @TableField(exist = false)
    private ProductBean product;
    /**
     * 采购商品编号
     */
    @TableField(value = "fk_productId")
    private String productId;
    /**
     * 采购价格
     */
    @TableField(value = "bi_buyMoney")
    private Integer buyMoney;

    /**
     * 采购数量
     */
    @TableField(value = "bi_num")
    private Integer num;

    /**
     * 所属采购实体ID
     */
    @TableField(value = "fk_buyerId")
    private Integer buyerId;
    /**
     * 所属采购实体
     */
    @TableField(exist = false)
    private BuyerBean buyer;


    public BuyerInfoBean() {
    }

    @Override
    public String toString() {
        return "BuyerInfoBean{" +
                "id=" + id +
                ", product=" + product +
                ", productId='" + productId + '\'' +
                ", buyMoney=" + buyMoney +
                ", num=" + num +
                ", buyerId=" + buyerId +
                ", buyer=" + buyer +
                "\n";
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public ProductBean getProduct() {
        return product;
    }

    public void setProduct(ProductBean product) {
        this.product = product;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public Integer getBuyMoney() {
        return buyMoney;
    }

    public void setBuyMoney(Integer buyMoney) {
        this.buyMoney = buyMoney;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getBuyerId() {
        return buyerId;
    }

    public void setBuyerId(Integer buyerId) {
        this.buyerId = buyerId;
    }

    public BuyerBean getBuyer() {
        return buyer;
    }

    public void setBuyer(BuyerBean buyer) {
        this.buyer = buyer;
    }
}
